/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.ts.dao;

import java.util.Collection;
import java.util.List;

import com.xy.biz.ts.domain.po.ExaminationPaperPO;
import com.xy.biz.ts.domain.query.ExaminationPaperQuery;
import com.xy.biz.ts.domain.req.GetExaminationPaperStatusRequest;
import com.xy.biz.ts.domain.req.examinationPaper.GetExaminationPaperRequest;

/**
 *
 *
 * @author wcs
 * @date 2021-3-8
 */
public interface ExaminationPaperDao {

	/**
	 * 保存
	 *
	 * @param examinationPaperPO
	 */
	int saveExaminationPaper(ExaminationPaperPO examinationPaperPO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllExaminationPaper(Collection<ExaminationPaperPO> collection);

	/**
	 * 更新
	 *
	 * @param examinationPaperPO
	 */
	int updateExaminationPaper(ExaminationPaperPO examinationPaperPO);

	/**
	 * 删除
	 *
	 * @param examinationPaperId
	 */
	int deleteExaminationPaper(Long examinationPaperId);

	/**
	 * 查找一个
	 *
	 * @param examinationPaperId
	 * @return
	 */
	ExaminationPaperPO getExaminationPaper(Long examinationPaperId);

	/**
	 * 查找多条
	 *
	 * @param collection
	 * @return
	 */
	List<ExaminationPaperPO> listExaminationPaperById(Collection<Long> collection);

	/**
	 * 条件查找多条
	 *
	 * @param query 查找条件
	 * @return
	 */
	List<ExaminationPaperPO> listExaminationPaper(ExaminationPaperQuery query);

	/**
	 * 条件统计个数
	 *
	 * @param query 查找条件
	 * @return
	 */
	int countExaminationPaper(ExaminationPaperQuery query);

    int updateStatusExaminationPaper(GetExaminationPaperStatusRequest request);

	int deleteExaminationPaperMultiple(Collection<Long> collection);
}
